import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";
import "@/assets/styles/main.less";
import "@/assets/iconfont/iconfont.css";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import router from "@/router/index";
import "virtual:uno.css";
import plugins from "./plugins/index"; // plugins
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(plugins);
app.use(pinia);
app.use(router);
app.use(ElementPlus, {
  locale: zhCn,
});

app.mount("#app");
